package com.lab.webSocket.model;

import javax.persistence.*;

/**
 * Created by xu_jiaHui on 2017/8/29.
 */
@Entity
@Table(name = "tb_user", schema = "webSocket", catalog = "")
public class UserEntity {
    private Integer userId;
    private String userAccount;
    private String userPassword;
    private String userNickname;
    private Integer userSex;
    private Integer userAge;
    private String userIcon;
    private String userProfile;
    private String groupList;
    private String chatWindows;
    private String userRegistrationTime;
    private String userLastLogoutTime;
    private Integer userStatus;

    public UserEntity() {
    }

    public UserEntity(String userAccount, String userPassword, String userNickname, Integer userSex, Integer userAge, String userIcon, String userProfile, String userRegistrationTime, Integer userStatus) {
        this.userAccount = userAccount;
        this.userPassword = userPassword;
        this.userNickname = userNickname;
        this.userSex = userSex;
        this.userAge = userAge;
        this.userIcon = userIcon;
        this.userProfile = userProfile;
        this.userRegistrationTime = userRegistrationTime;
        this.userStatus = userStatus;
    }

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "userId")
    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    @Basic
    @Column(name = "userAccount")
    public String getUserAccount() {
        return userAccount;
    }

    public void setUserAccount(String userAccount) {
        this.userAccount = userAccount;
    }

    @Basic
    @Column(name = "userPassword")
    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    @Basic
    @Column(name = "userNickname")
    public String getUserNickname() {
        return userNickname;
    }

    public void setUserNickname(String userNickname) {
        this.userNickname = userNickname;
    }

    @Basic
    @Column(name = "userSex")
    public Integer getUserSex() {
        return userSex;
    }

    public void setUserSex(Integer userSex) {
        this.userSex = userSex;
    }

    @Basic
    @Column(name = "userAge")
    public Integer getUserAge() {
        return userAge;
    }

    public void setUserAge(Integer userAge) {
        this.userAge = userAge;
    }

    @Basic
    @Column(name = "userIcon")
    public String getUserIcon() {
        return userIcon;
    }

    public void setUserIcon(String userIcon) {
        this.userIcon = userIcon;
    }

    @Basic
    @Column(name = "userProfile")
    public String getUserProfile() {
        return userProfile;
    }

    public void setUserProfile(String userProfile) {
        this.userProfile = userProfile;
    }

    @Basic
    @Column(name = "userRegistrationTime")
    public String getUserRegistrationTime() {
        return userRegistrationTime;
    }

    public void setUserRegistrationTime(String userRegistrationTime) {
        this.userRegistrationTime = userRegistrationTime;
    }

    @Basic
    @Column(name = "userLastLogoutTime")
    public String getUserLastLogoutTime() {
        return userLastLogoutTime;
    }

    public void setUserLastLogoutTime(String userLastLogoutTime) {
        this.userLastLogoutTime = userLastLogoutTime;
    }

    @Basic
    @Column(name = "userStatus")
    public Integer getUserStatus() {
        return userStatus;
    }

    public void setUserStatus(Integer userStatus) {
        this.userStatus = userStatus;
    }


}
